// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store'
import VueResource from 'vue-resource'
import h5Common from './assets/js/h5Common.js'
Vue.use(VueResource);
Vue.http.options.emulateJSON = true;
Vue.http.options.credentials = true;
Vue.http.options.root = 'http://www.hzchuangxiangzhe.cn/PcApi';
import './assets/lib/public.less'

import 'mint-ui/lib/style.css'

import { myAlert } from '@/assets/js/utils.js'

Vue.config.productionTip = false

const mixin = {
	methods: {
		myAlert(txt){
			myAlert(txt)
		}
	}
}

Vue.mixin(mixin)

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  template: '<App/>',
  components: { App }
})
